package com.tal.bcc.pad.cloud;

public class Log {

    public static  void e(String tag, String message) {
        System.out.println(tag + ": " + message);
    }


    public static  void w(String tag, String message) {
        System.out.println(tag + ": " + message);
    }


    public static  void i(String tag, String message) {
        System.out.println(tag + ": " + message);
    }


    public static  void d(String tag, String message) {
        System.out.println(tag + ": " + message);
    }

    public static  void v(String tag, String message) {
        System.out.println(tag + ": " + message);
    }

    public static String getStackTraceString(Exception e){
        StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
        for(StackTraceElement stackTraceElement : stackTraceElements){
            System.out.println(stackTraceElement.toString());
        }
        return e.getMessage();
    }
}
